-- GENERATED SPELL FOR [Grimtotem Bandit] --


function spell0_10758(pUnit, Event) --@Disarm,n/a--
pUnit:FullCastSpellOnTarget(6713,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10758', 5344, 1)
end

function spell1_10758(pUnit, Event) --@Kick,n/a--
pUnit:FullCastSpellOnTarget(11978,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10758', 6264, 1)
end

function Sorts_10758(pUnit, Event)
local choix_sorts_10758 = math.random(0, 1)
if choix_sorts_10758 == 0 then
pUnit:RegisterEvent('spell0_10758', 1, 1)
end
if choix_sorts_10758 == 1 then
pUnit:RegisterEvent('spell1_10758', 1, 1)
end
end

function mob10758_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10758', math.random(1500, 3000), 1)
end

function mob10758_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10758_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10758_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10758, 1, 'mob10758_Action')
RegisterUnitEvent(10758, 2, 'mob10758_Leave')
RegisterUnitEvent(10758, 3, 'mob10758_Kill')
RegisterUnitEvent(10758, 4, 'mob10758_Die')
